from rest_framework.pagination import PageNumberPagination
class CourseListPageNumberPagination(PageNumberPagination):
    page_query_param = "page"
    page_size = 5
    # 允许客户端通过指定的参数名来设置每一页数据量的大小，默认是size
    page_size_query_param = "size"
    max_page_size = 20  # 限制每一页最大展示的数据量
